<?php

namespace app\common\model;

class MedicationReminderHistory extends BaseModel
{
    protected $name = "medication_reminder_history";

    /**
     * 添加数据
     * @param array $data
     * @return string
     */
    public function addData(array $data): string
    {
        //添加时销毁自带的主键id
        unset($data['id']);
        return $this->save($data);
    }
}